package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: zhugelongchen
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-13 19:55
 **/
@RestController
@RequestMapping("/aop")

public class HelloController {
    @GetMapping("/getTest")
    public String getTest(){
        System.out.println("执行了getTest");
        return "getTest";
    }

    @PostMapping("/postTest")
    public String postTest(){
        System.out.println("执行了postTest");
        return "postTest";
    }

}
